﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NFine.Code.Text
{
   public class TextUtil
    {
        /** 年月日时分秒(无下划线) yyyyMMddHHmmss */
        public static String dtLong = "yyyyMMddHHmmss";

        public static String getStringNumber(List<string> list)
        {
            Random r = new Random();
            int a = r.Next(10000000, 100000000);
            while (list.Contains(a.ToString()))
            {
                 a = r.Next(10000000, 100000000);
            }
            return a.ToString();
        }

        //public static bool isMobileNumber(String mobiles)
        //{
        //    return Pattern
        //            .compile("\"^1+[3578]+\\\\d{9}")
        //            .matcher(mobiles).matches();
        //}
    }
}
